package com.appkubes.portal.admin.application.auth.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.keycloak.admin.client.Keycloak;
import org.keycloak.admin.client.resource.ClientResource;
import org.keycloak.admin.client.resource.RealmResource;
import org.keycloak.admin.client.resource.UserResource;
import org.keycloak.representations.idm.RoleRepresentation;
import org.keycloak.representations.idm.UserRepresentation;

import javax.ws.rs.core.Response;

public interface KeyCloakService {

    //获取当前KeyCloak
    Keycloak getKeycloak();

    //获得当前的Realm
    RealmResource getRealmResource();

    //获得当前的客户端
    ClientResource getClientResource();

    //获取当前的用户
    UserResource getUserResource(String userId);

    String getAccessToken();




}
